﻿using System.ComponentModel.DataAnnotations;

namespace Entity
{
    public class People
    {
        public People()
        {
            this.ID = Guid.NewGuid();
        }
        /// <summary>
        /// 数据唯一标识符
        /// </summary>
        [Required]
        public Guid ID { get; set; }
        /// <summary>
        /// 镇辖区登记人员的姓
        /// </summary>
        [Required]
        [StringLength(20)]
        public string FirstName { get; set; }
        /// <summary>
        /// 镇辖区登记人员的名
        /// </summary>
        [Required]
        [StringLength(30)]
        public string LastName { get; set; }
        /// <summary>
        /// 镇辖区登记人员的居住地址
        /// </summary>
        [Required]
        [StringLength(150)]
        public string Address { get; set; }
        /// <summary>
        /// 镇辖区登记人员是否在外务工
        /// </summary>
        [Required]
        public bool IsOut { get; set; }
        /// <summary>
        /// 镇辖区登记人员的年龄
        /// </summary>
        [Required]
        public int Age { get; set; }
        /// <summary>
        /// 镇辖区登记人员的性别
        /// </summary>
        [Required]
        public bool Gender { get; set; }
        /// <summary>
        /// 镇辖区登记人员是否是空巢老人
        /// </summary>
        public bool lable_empty { get; set; }
        /// <summary>
        /// 镇辖区登记人员是否是贫困人口
        /// </summary>
        public bool lable_poverty { get; set; }
        /// <summary>
        /// 镇辖区登记人员是否是慢性病人口
        /// </summary>
        public bool lable_chronic { get; set; }
        /// <summary>
        /// 镇辖区登记人员的出生日期
        /// </summary>
        [Required]
        public DateTime BirthDate { get; set; }
        /// <summary>
        /// 镇辖区登记人员的18位身份证号码
        /// </summary>
        [Required]
        [StringLength(20)]
        public string IDNumber { get; set; }
        /// <summary>
        /// 镇辖区登记人员的注册时间
        /// </summary>
        [Required]
        public DateTime AddTime { get; set; }
    }
}
